Login and redirect to user home page [migrated]
Posted
by
Rich
on Programmers
See other posts from Programmers
or by Rich
Published on 2012-04-05T09:50:23Z
Indexed on
2012/04/05
11:41 UTC
Read the original article
Hit count: 234
The problem I can't currently solve is when a user logs in. They arrive at the site (index.php) and enter username and password, which gets submitted via a Post form back to index.php - if there are incorrect details then they get an error message. But if successful then I would like them to be taken to their user home page - but I can't do this! I am left presenting them with a link to the home page, which is more than a little clunky.
Seems there must be an obviously solution - never seen a site before that didn't redirect! Not sure is the answer is PHp, HTML, or Javascript.
© Programmers or respective owner